package module

import (
	"fmt"
	"gitee.com/liumou_site/logger"
)

func (h *Hosts) Show() {
	err := h.Read()
	if err != nil {
		logger.Error(err.Error())
		return
	}
	fmt.Println("当前有效记录信息如下")
	for _, r := range h.RecordList {
		fmt.Printf("%s\t%s\n", r.Ip, r.Domain)
	}
	fmt.Println("--------------------")
}
